<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        //1、对象字面量
        var tom={name:"tom"};

        //2、使用Object内置构造器
        var jack=new Object();
        jack.name="jack";
        var lili=Object.create(null,{name:{value:"lili"}});

        //3、自定义构造函数
        function User(name){
            this.name=name;
        }
        var rose=new User("rose");
    </script>
</body>
</html>